package com.bajiao.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 行政区划
 * @Author: FanJq
 * @Date: 2024-10-1011-17
 * @Version: V1.0
 */
@Data
@TableName("sys_area")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "sys_area对象", description = "行政区划")
public class Area {

    /**
     * id
     */
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 完整名称
     */
    @Excel(name = "完整名称", width = 15)
    @ApiModelProperty(value = "完整名称")
    private String fullname;
    /**
     * 经纬度json
     */
    @Excel(name = "经纬度json", width = 15)
    @ApiModelProperty(value = "经纬度json")
    private String location;
    /**
     * 父id
     */
    @Excel(name = "父id", width = 15)
    @ApiModelProperty(value = "父id")
    private String pid;
    /**
     * 父ids
     */
    @Excel(name = "父ids", width = 15)
    @ApiModelProperty(value = "父ids")
    private String pids;
    /**
     * 父id
     */
    @TableField(exist = false)
    private String pName;
    /**
     * 管理名称
     */
    @Excel(name = "管理名称", width = 15)
    @ApiModelProperty(value = "管理名称")
    private String managename;
    /**
     * 等级 1:省 2:市 3:县（区）4:乡（街道
     */
    @Excel(name = "等级 1:省 2:市 3:县（区）4:乡（街道", width = 15)
    @ApiModelProperty(value = "等级 1:省 2:市 3:县（区）4:乡（街道")
    private Integer level;
    /**
     * 省id
     */
    @Excel(name = "省id", width = 15)
    @ApiModelProperty(value = "省id")
    private String sheng;
    /**
     * 市id
     */
    @Excel(name = "市id", width = 15)
    @ApiModelProperty(value = "市id")
    private String shi;
    /**
     * 县id
     */
    @Excel(name = "县id", width = 15)
    @ApiModelProperty(value = "县id")
    private String xian;
}
